package com.cn.dao;

import com.cn.entity.News;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hyz
 * @since 2024-10-28
 */
public interface NewsMapper extends BaseMapper<News> {
    @Delete("delete from sys_news where id = #{id}")
    int deleteNewsById(Long id);
}
